//
//  KFDMessagesViewCell.m
//  KFD
//
//  Created by Lucky Luke on 8/14/15.
//  Copyright (c) 2015 kfd. All rights reserved.
//

#import "KFDMessagesViewCell.h"
#import "NSDate+format.h"

@interface KFDMessagesViewCell ()

@property (weak, nonatomic) IBOutlet UILabel *messageLabel;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
@property (weak, nonatomic) IBOutlet UILabel *markNewLabel;

@end

@implementation KFDMessagesViewCell

- (void)awakeFromNib {
}

-(void)setMessage:(KFDMessageSummary *)message
{
    _message=message;
    self.messageLabel.text=message.title;
    self.timeLabel.text=[NSString stringWithFormat:@"推送时间 : %@ %@",message.date.year_month_day,message.date.hour_minute];
    self.markNewLabel.hidden=!message.isnew;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
